package com.ctbri.JWLetter.bean;

/**
 * Neo4j节点实体
 * 
 * @author Hogan
 *
 */
public class Node {

	private Integer nodeId;
	private Integer category;
	private String name;
	private Integer value;
	private Integer[] articleIds;

	public Integer getNodeId() {
		return nodeId;
	}

	public void setNodeId(Integer nodeId) {
		this.nodeId = nodeId;
	}

	public Integer getCategory() {
		return category;
	}

	public void setCategory(String category) {
		if (category == null || category.equals("")) {
			return;
		}
		if (category.equals("person")) {
			this.category = 1;
		} else if (category.equals("location")) {
			this.category = 2;
		} else if (category.equals("institution")) {
			this.category = 3;
		} else if (category.equals("crime")) {
			this.category = 4;
		} else if (category.equals("position")) {
			this.category = 5;
		} else if (category.equals("accusationdate")) {
			this.category = 6;
		} else {
			this.category = 7;
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public Integer[] getArticleIds() {
		return articleIds;
	}

	public void setArticleIds(Integer[] articleIds) {
		this.articleIds = articleIds;
	}

}
